@model OurWedding1.Models.GuestGroup
@using OurWedding1

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Name)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Name)
    @Html.ValidationMessageFor(model => model.Name)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.InvitationText)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.InvitationText)
    @Html.ValidationMessageFor(model => model.InvitationText)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Adress)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Adress)
    @Html.ValidationMessageFor(model => model.Adress)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.City)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.City)
    @Html.ValidationMessageFor(model => model.City)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.PostCode)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.PostCode)
    @Html.ValidationMessageFor(model => model.PostCode)
</div>

<div class="editor-label">
    @Html.LabelFor(m => m.GuestSideId)
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.GuestSideId, ((IEnumerable<OurWedding1.Models.GuestSide>)ViewBag.PossibleGuestSides).Select(option => new SelectListItem {
        Text = (option == null ? Resources.None : option.Name), 
        Value = option.GuestSideId.ToString(),
        Selected = (Model != null) && (option.GuestSideId == Model.GuestSideId)
    }), Resources.Choose)
    @Html.ValidationMessageFor(model => model.GuestSideId)
</div>

@Html.HiddenFor(m => m.WeddingId)